import { NextResponse } from 'next/server'

export async function GET() {
  try {
    const response = await fetch('https://api.lolicon.app/setu/v2?tag=萝莉|少女&tag=白丝|黑丝', {
      headers: {
        'Content-Type': 'application/json',
      },
    })
    
    const data = await response.json()
    return NextResponse.json(data)
  } catch (error) {
    return NextResponse.json(
      { error: 'Failed to fetch images' },
      { status: 500 }
    )
  }
} 